<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta charset="ISO-8859-1">
    <title>超市商品管理系统</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body>
<div class="container">
    <h1>超市商品管理</h1>
    <hr>
    <h2>上架新商品</h2>

    <form action="#" th:action="@{/saveSupermarket}" th:object="${supermarket}" method="POST">
        <input type="text" th:field="*{goodsName}" placeholder="商品名称" class="form-control mb-4 col-4">

        <input type="text" th:field="*{price}" placeholder="商品价格(元)" class="form-control mb-4 col-4">

        <input type="text" th:field="*{types}" placeholder="商品类型" class="form-control mb-4 col-4">

        <button type="submit" class="btn btn-info col-2"> 保存</button>
    </form>

    <hr>

    <a th:href="@{/}"> 回到商品列表</a>
</div>
</body>

</html>
